/**
 * @Description: 入口文件
 * @Author BPF
 * @create 2021/8/19 17:26
 */
import { createApp } from 'vue'
import router from './router/'
import bootstrap from './libs/bootstrap'
import store from './store/'
import { sync } from '~vuex-helper'
import App from './views/App.vue'

const app = createApp(App)
app.config.productionTip = false
app.config.errorHandler = (err, vm, info) => {
  // 处理错误
  // `info` 是 Vue 特定的错误信息，比如错误所在的生命周期钩子
  const loading_ = sync('app/loading')
  loading_.value = false
  console.log(err, vm, info)
}

app.use(bootstrap).use(router).use(store).mount('#app')
